styleproperties: Remove unused function
authorBenjamin Otte <otte@redhat.com>
Fri, 24 Oct 2014 19:03:36 +0000 (21:03 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 24 Oct 2014 19:31:40 +0000 (21:31 +0200)
gtk/gtkstyleproperties.c
gtk/gtkstylepropertiesprivate.h

index d751227de89d33061f122fda1ff1f7a5f7c7db52..32f0f246a4e276806cbaa8f3d3de05815b5e6efc 100644 (file)
@@ -585,25 +585,6 @@ gtk_style_properties_set (GtkStyleProperties *props,
   va_end (args);
 }
 
-GtkCssValue *
-_gtk_style_properties_peek_property (GtkStyleProperties  *props,
-                                     GtkCssStyleProperty *property,
-                                     GtkStateFlags        state)
-{
-  GtkStylePropertiesPrivate *priv;
-  PropertyData *prop;
-
-  g_return_val_if_fail (GTK_IS_STYLE_PROPERTIES (props), FALSE);
-  g_return_val_if_fail (property != NULL, FALSE);
-
-  priv = props->priv;
-  prop = g_hash_table_lookup (priv->properties, property);
-  if (prop == NULL)
-    return NULL;
-
-  return property_data_match_state (prop, state);
-}
-
 typedef struct {
   GtkStyleProperties *props;
   GtkStateFlags       state;
@@ -614,10 +595,14 @@ style_query_func (guint    id,
                   gpointer data)
 {
   StyleQueryData *query = data;
+  PropertyData *prop;
+
+  prop = g_hash_table_lookup (query->props->priv->properties,
+                              _gtk_css_style_property_lookup_by_id (id));
+  if (prop == NULL)
+    return NULL;
 
-  return _gtk_style_properties_peek_property (query->props,
-                                              _gtk_css_style_property_lookup_by_id (id),
-                                              query->state);
+  return property_data_match_state (prop, query->state);
 }
 
 /**
index 74cde6251745e39e083a2751a2260d4ea8fda6a0..77268d9ccea1f6ad68bb044170fe090e32a399bf 100644 (file)
@@ -24,9 +24,6 @@
 
 G_BEGIN_DECLS
 
-GtkCssValue  * _gtk_style_properties_peek_property            (GtkStyleProperties      *props,
-                                                               GtkCssStyleProperty     *property,
-                                                               GtkStateFlags            state);
 void           _gtk_style_properties_set_property_by_property (GtkStyleProperties      *props,
                                                                GtkCssStyleProperty     *property,
                                                                GtkStateFlags            state,